package com.usooft.metaTalent.admin.base;

import com.usooft.framework.core.utils.MapBuilder;
import com.usooft.metaTalent.admin.base.service.SetupService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/setup")
@RequiredArgsConstructor
public class SetupController {

    private final SetupService setupService;

    @GetMapping
    public ResponseEntity<?> setup() {
        setupService.setup();
        return ResponseEntity.ok(MapBuilder.builder()
                .put("message", "初始化成功")
                .build());
    }

}
